package com.xiaoyang.orderservice.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * @auther XiaoYang
 * @DATE 2023/5/4-17:35
 */
@RestController
public class OrderController {

    @GetMapping("/doOrder")
    public String doOrder(){
        //模拟操作数据库 等2s
        try {
            TimeUnit.SECONDS.sleep(59);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "豆浆油条";
    }

}
